package com.ity.teamanagement.entity.outputResult;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author coderFu
 * @create 2021/5/23
 */
@Data
@ApiModel("用户信息返回封装")
public class UserDetail implements Serializable {

    @ApiModelProperty("自增id")
    private Long id;

    @ApiModelProperty("手机号")
    private Long phone;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("用户角色 1是管理员 2是普通用户")
    private Long userRole;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date updateTime;

}
